package com.wn.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author yellow Docter
 * @date 2023 -03-10
 * @desc
 */

@FeignClient(
        value = "MEMBER-SERVICE",               //配置微服务的名称
        fallback = MemberApiCallBack.class)    // 配置  fallback接口调用失败的 服务降级  MemberApiCallBack
public interface MemberApi {

    @GetMapping("/member/find/{id}")
    public String findMemberById(@PathVariable("id") Integer id);
}
